const mongoose = require("mongoose")
const Schema = mongoose.Schema

//给集合进行限制
const NewsType = {
    title:String,
    content:String,
    category:Number, //1最新动态 2典型案例 3通知公告
    cover:String,
    isPublish:Number, //0未发部  1以发布
    editTime:Date

}
const NewsModel = mongoose.model("news",new Schema(NewsType))

module.exports = NewsModel